Networks

Goal

Think through more what I want to put on local network server to be accessed for final project. Put some sort of tracker, quote, and better UI for the webpage. Look into placing forms and permission to be accessed locally.

Materials and software

  1. Rasberry Pi Pico H

Setting up server

  1. The biggest problem I am running into throughout this process is building small on the micro controller
  2. On the THonny Package manager it says I can install flask to build my webpage, but then there is an error on one of the dependenices
  3. The next thing I am gonna try is running microserver library which seems more tailored to micropython env
  4. I want to get the different modules up and running for the site and then see if there is something I could do with permissions
jinja2
Library issues
layout
Ideation

Quote module

  1. I was able to use a previous quote module that I built earlier
  2. I want to investigate how to make the quote auto change every 24 hours
  3. I need to figure out how it can be manually changed as well as automatically changed

Excel/table sheet module

  1. Trying to get my own dynamic table to work with minimal packages even with chatgpt did not go well
  2. The new plan is to learn how to use google api to enable google sheets to be used as a database
  3. The first obstacle I am running into is security and permissions
  4. It first has me saving my google credentials in a json file, but I wanted to use google api which is less secure
  5. I have now realized that there are only 800 kb of memory on the pico so I am going to have to use a different microcontroller/ figure out how to use the sd card
  6. storage
    Lack of storage

News

  1. I see this as a place where anyone can place improtant or interesting snippets for people to read
  2. Tried getting a form going where people could post to the news, but I am running into the same problem as the table
  3. Will have to investigate more low fidelity ways to get this to work

Calendar

  1. I am hoping to just call google calendar api in order to port over that calendar for everyone to be able to change it separately and it updates
  2. Google makes this incredibly easy and is just one line of code which is great

Permission and editing

  1. For safety reasons you would not want everyone to be able to update all modules whenever
  2. I need to investigate how can only certain people can make changes - i am thinking of having a password.
  3. This is not a huge concern right now because there are no interactive parts really, but I want to have it in mind for the future

Final thoughts

  1. I am going to have to use a different microcontroller because of the lack of storage most likely
  2. This was a combined project with assignment 3 which was to just get a microcontroller to do anything
  3. I learned a lot more of what the capabilities of the pico are and how that should have to factor into my final project
  4. It does very well for calling apis and running super low level code, but it is not great for running a server
final site
Website
Code here